package com.ruoyi.system.mapper;


import com.ruoyi.common.core.domain.entity.SysCity;

import java.util.List;

/**
 * 通用数据 数据层
 *
 * @author ruoyi
 */
public interface SysCityMapper {

    List<SysCity> selectCityList(Long parentId);

    List<SysCity> selectCityListByParentId(Long parentId);

    // 根据子元素获取父元素
    List<SysCity> selectCityListFromChildToParentId(String userId);

    // 删除用户与管辖地区关联
    void deleteUserCityByUserId(String userId);

//    void batchUserCity(@Param("sysUserCityList") List<SysUserCity> sysUserCityList);

    List<Long> selectCityListByUserId(String userId);

    List<SysCity> getCityListByUserId(String userId);

    SysCity getCityByCityId(Long id);
}
